package com.jy.rhin.model.body.zhongxingjsbsf;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class YongYao {

    //中药使用类别
    @XPath(path = "/entry/observation/code[@code='DE06.00.164.00']/../value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_164_00, nullable = true))
    CodeObject zhongYaoSYLB;

    //用药条目列表
    @XPath(path = "."
            , listItemPath = "/entry/substanceAdministration", listItemBackLevel = 0)
    List<YongYaoItem> yongYaoItemList = new ArrayList<>();

}
